


(async () => {
  var mongoose = require('mongoose');
  const Test = require('./schema/Test')
  const Menu = require('./schema/Menu')
  const Record = require('./schema/Record')
  mongoose.connect('mongodb://user1:123qwe@111.231.55.85:27017/hospital', { useNewUrlParser: true });
  // data.templateOwner = '666001'
  // await new Template(data).save()
  // data.templateOwner = '810001'
  // await new Template(data).save()
  // data.templateOwner = '501'
  // await new Template(data).save()
  // data.templateOwner = 'hospital'
  // await new Template(data).save()
  // await new Test({a: "aaa", b: "bbb"}).save()
  let records = await Record.find({"_id": ["5c90a13dd1b4a75750ae226d", "5c94ac36f612210acaaca421", "5c94c3bcdc345e1edb7071df"]})
  console.log(records.length)
  process.exit(0)
})()